import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/math/login.aspx',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/math/info.aspx',
    method: 'get',
    params: { token }
  })
}

export function logout(data) {
  return request({
    url: '/math/logout.aspx',
    method: 'post'
  })
}

export function registry(data) {
  return request({
    url: '/math/registry.aspx',
    method: 'post',
    data
  })
}
